package homework1;

public class StudyPlan {
    public void doWhat(Week day){
        switch(day){
            case MON:
            case TUE:
            case WED:
            case THU:
            case FRI:
                System.out.println("工作日，努力写代码");
                break;
            case SAT:
                System.out.println("星期六，休息日，陪女朋友看一场电影");
                break;
            case SUN:
                System.out.println("星期日，休息日，陪朋友去体育馆打篮球");
                break;
                default:
                    System.out.println("地球上一个星期只有七天");
        }
    }

    public static void main(String[] args) {
        StudyPlan sp = new StudyPlan();
        sp.doWhat(Week.THU);
        Week sat = Week.SAT;
        sp.doWhat(sat);
    }
}
